package net.csdn.business.common.domain.request;

import lombok.Data;
import net.csdn.business.common.domain.validation.groups.System;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author likun
 * @date 2022/6/25 19:11
 */
@Data
public class InvitationVerifyReqDto implements Serializable {
    /**
     * 登录用户UID
     */
    @NotBlank(message = "uid 不能为空", groups = {System.class})
    private String uid;

    @NotBlank(message = "code 不能为空")
    private String code;

    @NotNull(message = "status 不能为空")
    @Range(min = 1, max = 3, message = "status 不合法")
    private Integer status;
}